package com.qing.service.impl;

import com.qing.pojo.Notice;
import com.qing.mapper.NoticeMapper;
import com.qing.service.NoticeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author qinghua
 * @since 2022-06-06
 */
@Service
public class NoticeServiceImpl extends ServiceImpl<NoticeMapper, Notice> implements NoticeService {

    @Autowired
    private NoticeMapper noticeMapper;

    @Override
    public List<Map<String, Object>> queryAllAndName() {
        return noticeMapper.queryAllAndName();
    }

    @Override
    public List<Map<String, Object>> queryNoticeByTitle(String title) {
        return noticeMapper.queryNoticeByTitle(title);
    }
}
